import random,datetime,time
def id_number():
    phone_num = '1' + "".join([str(random.randint(0, 10)) for i in range(9)])
    return phone_num
print(id_number())


def get_mobile():
    mobiles = ['130' ,'131' ,'132','133','134']
    number = str(int(time.time()))[2:]
    mobile = random.choice(mobiles)+ number
    return mobile
print(get_mobile())


def create_card():
    """
    :rtype: object
    """
    date2 = datetime.datetime.now().date().isoformat().split("-")  # 获取当前日期并转换成字符串格式
    current_date = "".join(date2)
    # 获取时间戳截取后五位
    now = int(time.time())
    now_timestamp1 = str(now)[5:]
    card_no = current_date + now_timestamp1
    return card_no
print(create_card())